cc = g++
link_lib = -ljsoncpp -lboost_system -lboost_filesystem -lmysqlclient -lmysqlpp

.PHONY:all
all:debug parser http_server

debug:debug.cc
	$(cc) -o $@ $^ $(link_lib)
parser:parser.cc
	$(cc) -o $@ $^ $(link_lib) 
http_server:http_server.cc
	$(cc) -o $@ $^ $(link_lib) 

.PHONY:clean
clean:
	rm -f parser debug http_server